package com.youdoneed.community.forum.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.community.forum.entity.Forummessagelabel;
@Mapper
public interface ForummessagelabelMapper {
    int deleteByPrimaryKey(String forumMessageLabelId);

    int insert(Forummessagelabel record);

    int insertSelective(Forummessagelabel record);

    Forummessagelabel selectByPrimaryKey(String forumMessageLabelId);

    int updateByPrimaryKeySelective(Forummessagelabel record);

    int updateByPrimaryKey(Forummessagelabel record);
    
    List<Forummessagelabel> getAllForummessagelabels();
    
    List<Forummessagelabel> getSearcherForummessagelabel(@Param("labelDescribe")String labelDescribe,@Param("labelStatus")Integer labelStatus,@Param("createDateS")String createDateS,@Param("createDateE")String createDateE);
    
    /**
     * 根据帖子id获取对应的标签列表
     * @param forumMsgId
     * @return
     * @author lid
     * @date 2017.6.22
     */
    List<Forummessagelabel> getLabelByMsgId(String forumMsgId);
    
    int countAllForummessagelabels();
}